package com.bafa.front.events;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bafa.dbcache.LeagueCache;
import com.bafa.front.presentationbeans.TeamListBean;
import com.bafa.objects.AdminUser;
import com.bafa.objects.PageBean;
import com.bafa.services.RetrieveServices;

public class AdminHomeEvent extends Event {

	@Override
	public void doEvent(HttpServletRequest request,
			HttpServletResponse response, PageBean page) {
		
	
		page.addDetails(RetrieveServices.getPage("admin"));
		
		request.setAttribute("TEAMS",new TeamListBean(RetrieveServices.getAllTeams()));
	
	}
}


